package com.opencee.common.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 逻辑删除实体
 * @author: yadu
 * @date: 2020/2/26 15:01
 * @desc: 实体类父类
 */
public abstract class AbstractLogicEntity extends AbstractEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "逻辑删除", hidden = true, notes = "不需要输入")
    @TableLogic
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    @JSONField(serialize = false)
    @JsonIgnore
    private Integer deleted;

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
